package CrowdCountingWeb.Servlet;

import CrowdCountingMVC.CCModel.CrowdCountingModel;
import CrowdCountingMVC.CCModel.CrowdCountingModelInterface;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class CrowdCountingServlet extends HttpServlet {
    public void init() {
        CrowdCountingModelInterface ccModel = new CrowdCountingModel();
        getServletContext().setAttribute("ccModel", ccModel);
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        CrowdCountingModelInterface ccModel = (CrowdCountingModel) getServletContext().getAttribute("ccModel");

    }

}
